//
//  UUCurrentUser.m
//  Whistle
//
//  Created by ZhangAo on 15/11/20.
//  Copyright © 2015年 BookSir. All rights reserved.
//

#import "UUCurrentUser.h"

@interface UUCurrentUser () <NSCoding>

@end

@implementation UUCurrentUser

#pragma - NSCoding methods

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
	self = [super init];
	if (self) {
		self.token = [aDecoder decodeObjectForKey:@"token"];
		self.userId = [aDecoder decodeObjectForKey:@"userId"];
	}
	return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
	[aCoder encodeObject:self.token forKey:@"token"];
	[aCoder encodeObject:self.userId forKey:@"userId"];
}

@end
